<template>
    <van-card
        class="car_item_info"
        :num="item.goodsCount"
        :price="item.sellingPrice"
        :title="item.goodsName"
        :thumb="item.goodsCoverImg"
    >
        <template #footer>
            <van-stepper v-if="!noBtn" v-model="item.goodsCount" />
        </template>
    </van-card>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
    props: {
        item: {
            type: Object,
            default: () => ({}),
        },
        noBtn: {
            type: Boolean,
            default: false,
        },
    },
    setup() {
        return {};
    },
});
</script>

<style scoped>
:deep .van-card__price-integer {
    color: red;
}
</style>
